package com.lhf.novel.sysuser.entity;

import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * (SysUser)实体类
 *
 * @author 刘会发
 * @since 2020-03-09 11:19:26
 */
@NoArgsConstructor
@AllArgsConstructor
public class SysUser implements Serializable {
    private static final long serialVersionUID = 887888219834774141L;
    /**
     * 主键
     */
    private Integer id;
    /**
     * 用户名
     */
    private String username;
    /**
     * 密码
     */
    private String password;
    /**
     * 真实姓名
     */
    private String realName;
    /**
     * 电子邮件
     */
    private String email;
    /**
     * 头像
     */
    private String headImg;
    /**
     * 联系方式
     */
    private String phone;
    /**
     * 是否锁定 0未锁定 1已锁定
     */
    private Integer isLock;
    /**
     * 0未删除 1已删除
     */
    private Integer isDel;
    /**
     * 创建时间
     */
    private Date createTime;

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getHeadImg() {
        return headImg;
    }

    public void setHeadImg(String headImg) {
        this.headImg = headImg;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getIsLock() {
        return isLock;
    }

    public void setIsLock(Integer isLock) {
        this.isLock = isLock;
    }

    public Integer getIsDel() {
        return isDel;
    }

    public void setIsDel(Integer isDel) {
        this.isDel = isDel;
    }

    public SysUser(Integer id, Integer isLock) {
        this.id = id;
        this.isLock = isLock;
    }

    public SysUser(Integer id, String password){
        this.id = id;
        this.password = password;
    }

    public SysUser(String username, String realName, String email, String phone, Integer isLock) {
        this.username = username;
        this.realName = realName;
        this.email = email;
        this.phone = phone;
        this.isLock = isLock;
    }

    public SysUser(String username, String realName, String email, String phone, Integer isLock, String password) {
        this.username = username;
        this.realName = realName;
        this.email = email;
        this.phone = phone;
        this.isLock = isLock;
        this.password = password;
    }

    public SysUser(Integer id, String realName, String email, String headImg, String phone, Integer isLock) {
        this.id = id;
        this.realName = realName;
        this.email = email;
        this.headImg = headImg;
        this.phone = phone;
        this.isLock = isLock;
    }
}